package com.example.membersteward.mapper;

import com.example.membersteward.entity.RoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 26690
* @description 针对表【role_user(角色与用户关联表)】的数据库操作Mapper
* @createDate 2025-04-08 22:52:37
* @Entity com.example.membersteward.entity.RoleUser
*/
@Mapper
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    Integer isAdmin(String roleType,Long userId);

    int insertRoleUser(List<String> roleIds, Long userId);


    int insertByAcct(List<String> roleIds, String userAcct);
}




